package com.hzhq.contract.bean.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hzhq.contract.bean.entity.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Field;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author hzhq
 * @create 2021/4/9 2:39 下午
 * @email hzhq1255@163.com
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "ContractTemplateDTO", description = "模板dto")
public class ContractTemplateDTO {

    @ApiModelProperty(value = "id")
    private ObjectId templateId;
    @ApiModelProperty(value = "模板名称")
    private String templateName;
    @ApiModelProperty(value = "合同种类")
    private ContractType contractType;
    @ApiModelProperty(value = "甲方公司")
    private List<Company> companiesA;
    @ApiModelProperty(value = "乙方公司")
    private List<Company> companiesB;
    @ApiModelProperty(value = "负责人")
    private String contactPerson;
    @ApiModelProperty(value = "负责人联系方式")
    private String contactPhone;
    @ApiModelProperty(value = "所属部门")
    private Depart depart;
    @ApiModelProperty(value = "合同金额")
    private BigDecimal contractAmount;
    @ApiModelProperty(value = "自定义扩展字段")
    private List<Extern> externList;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date createTime;
    @ApiModelProperty(value = "是否删除")
    private Integer deleted;
    @ApiModelProperty(value = "是否通过")
    private Integer passed;
    @ApiModelProperty(value = "录入人员")
    private User createUser;



}
